package com.wenwu.dao;

import com.wenwu.common.bean.RelicsPreserve;
import com.wenwu.common.bean.RelicsPreserveExample;
import com.wenwu.common.exception.RelicsException;
import com.wenwu.common.page.PaginationVO;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface RelicsPreserveMapper extends Dao {
	int countByExample(RelicsPreserveExample example);

	int deleteByExample(RelicsPreserveExample example);

	int deleteByPrimaryKey(Integer preserveId);

	int insert(RelicsPreserve record);

	int insertSelective(RelicsPreserve record);

	List<RelicsPreserve> selectByExample(RelicsPreserveExample example);

	RelicsPreserve selectByPrimaryKey(Integer preserveId);

	int updateByExampleSelective(@Param("record") RelicsPreserve record,
			@Param("example") RelicsPreserveExample example);

	int updateByExample(@Param("record") RelicsPreserve record,
			@Param("example") RelicsPreserveExample example);

	int updateByPrimaryKeySelective(RelicsPreserve record);

	int updateByPrimaryKey(RelicsPreserve record);

	// 后加的方法
	int selectTotalRecord(@Param("relicsPreserve") RelicsPreserve relicsPreserve)
			throws RelicsException;

	List<RelicsPreserve> selectList(
			@Param("relicsPreserve") RelicsPreserve relicsPreserve,
			@Param("pageVo") PaginationVO pageVo) throws RelicsException;

	int deleteByKey(List<?> list) throws SQLException;

	RelicsPreserve selectRelicsPreserveByBasicId(
			@Param("basicId") Integer basicId) throws SQLException;
}